<template>
    <el-menu
        default-active="./preview/git.html"
        router
    >
        <SideMenuItem v-for="(e) in SideItems" :key="e.name" :iteminfo="e" />
    </el-menu>
</template>
<script>
    import SideMenuItem from './SideMenuItem.vue';
    export default {
        name:'SideMenu',
        components:{
            SideMenuItem
        },
        computed:{
            SideItems(){
                return this.$store.state.ClassList[this.$store.state.NowClass].noteList;
            }
        }
    }
</script>